import buble from "@rollup/plugin-buble";
import terser from "@rollup/plugin-terser";

const input = "index.js";
const sourcemap = true;

export default [
  {
    input,
    output: {
      file: "dist/simple-statistics.mjs",
      format: "es",
      sourcemap
    },
    plugins: [buble()]
  },
  {
    input,
    output: {
      file: "dist/simple-statistics.js",
      format: "cjs",
      sourcemap
    },
    plugins: [buble()]
  },
  {
    input,
    output: {
      file: "dist/simple-statistics.min.js",
      format: "umd",
      name: "ss",
      sourcemap
    },
    plugins: [buble(), terser()]
  }
];
